<?php

namespace App\Home\Filters;

use Illuminate\Http\Request;

class WorshipPptFilter extends Filter
{
public $filterRules = <<< EOF
{
    "id": [
        "equal",
        "?"
    ],
    "worship_date": [
        "like",
        "%?%"
    ],
    "hymn_id": [
        "equal",
        "?"
    ],
    "response_bible": [
        "like",
        "%?%"
    ],
    "choir_id": [
        "equal",
        "?"
    ],
    "praise_id": [
        "like",
        "%\"?\"%"
    ],
    "preach_title": [
        "like",
        "%?%"
    ],
    "preach_lection": [
        "like",
        "%?%"
    ],
    "created_at": [
        "equal",
        "?"
    ],
    "updated_at": [
        "equal",
        "?"
    ],
    "deleted_at": [
        "equal",
        "?"
    ]
}
EOF;   

    public function __construct(Request $request)
    {
        parent::__construct($request);
        $this->simpleFilters = json_decode($this->filterRules, true);
    }
}
